/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.structural.composite;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Chelsea
 */
public class Leaf implements Component {
    String name;
    List<Component> components=new ArrayList<Component>();
public Leaf(String name){
this.name = name;

}
@Override
public String sayHello(){
       return name+"leafsayshello";
          
   
}
@Override
public String sayGoodbye(){
       return name+"leafsaysgoodbye";
}

}
